﻿namespace CAPHandlerAttributeDemo.Api.EventHandlers;

[EventName("test.show.time")]
public class MessageEventSubscribe : EventSubscribe
{
    public DateTime SendTime { get; set; }
}

public class MessageEventHandler : IEventHandler<MessageEventSubscribe>
{
    public void Handle(MessageEventSubscribe eventSubscribe)
    {
        Console.WriteLine("message time is:" + eventSubscribe.SendTime.ToString());
    }
}
